﻿using System;
using System.Collections.Generic;
using OpenLab.DAL;
using OpenLab.Model;

namespace OpenLab.BLL
{

    public partial class ClientBLL : OpenLab.BLL.IClientBLL
    {
        public Client Add(Client client)
        {
            return new ClientDAL().Add(client);
        }

        public int DeleteById(int id)
        {
            return new ClientDAL().DeleteById(id);
        }

		public int Update(Client client)
        {
            return new ClientDAL().Update(client);
        }
        

        public Client GetById(int id)
        {
            return new ClientDAL().GetById(id);
        }
		public int GetTotalCount()
		{
			return new ClientDAL().GetTotalCount();
		}
		
		public IEnumerable<Client> GetPagedData(int minrownum,int maxrownum)
		{
			return new ClientDAL().GetPagedData(minrownum,maxrownum);
		}
		
		public IEnumerable<Client> GetAll()
		{
			return new ClientDAL().GetAll();
		}
    }
}
